<?php
include $_SERVER ['DOCUMENT_ROOT'] . '/paths.php';
include $COMPONENT_SITE;

$jumbo = '
<h1 class="nocount">Series: Game Engine</h1>
<p><strong>Part 1 - Model Converter</strong>: This is the first part of the tutorial series "Game Engine".</p>
';

$sidebar = '
<div id="sidebar">
  <div class="list-group">
    <a class="list-group-item" href="#prefix">Prefix</a>
    <a class="list-group-item" href="#libraries">Libraries</a>
    
    <!-- <div id="sb-libraries-install" class="collapse">
      <a class="list-group-item list-group-second-level" 
          href="#libraries-installation">
        Installation
      </a>
    </div> -->
  </div>
</div>
';

$content = '
<h1 name="prefix">Prefix</h1>
<p>Loading models is a primary concern for every graphic programmer.
  We have to take data that we get from modelling software (such as
  Blender) and put it into a format that we are able to parse and
  import.</p>
<p>Of course we could just use a well known format like Collada or
  3DS but this would result in increased loading times and
  unnecessary big model files because those formats hold far more
  information than we need. Collada, for example, is a XML format.
  This means there would be very much overhead which would inevitably
  lead to greater storage and loading time needs. Of course you could
  go this way but I strongly recommend you to define your own format
  which best suits your applications.</p>

<h1 name="libraries">Libraries</h1>
<p>In this project I used the awesome <a 
  href="http://assimp.sourceforge.net/">Assimp</a>. It is a
  really good library that basically is able to import different 
  model formats and bring them in an uniform datastructure. This
  makes it easy to support multiple file formats. If you are only
  interested in importing a specific format you can exchange the
  Assimp importer with an other one.</p>
<p>To install assimp you can either use a package manager or follow
  the instructions <a href="http://assimp.sourceforge.net/lib_html/install.html">
  here</a> to build it with cmake.</p>
<p>E.g. on OSX you could do it with <a href="http://brew.sh">Homebrew</a>:</p>
<pre class="prettyprint linenums:1">
brew install assimp
</pre>
<p>For math related things I use <a href="http://glm.g-truc.net/">GLM</a>
  most of the time.</p>

<h1 name="
';

echo '<!DOCTYPE html><html>';

echo getDefaultHeader("Graphiclicious - Game Engine Series");

echo getDefaultBody(1, $jumbo, $sidebar, $content);

echo '</html>';

echo getDefaultAffixScript ();
?>